<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>商品小分类管理</title>
		<!-- Bootstrap core CSS -->
		<link href="asserts/css/bootstrap.min.css" th:href="@{/asserts/css/bootstrap.min.css}" rel="stylesheet">

		<!-- Custom styles for this template -->
		<link href="asserts/css/dashboard.css" th:href="@{/asserts/css/dashboard.css}" rel="stylesheet">

	</head>

	<body>
		<!-- 插入顶部部分topbar !-->
		<div th:replace="commons/bar::#topBar"></div>
		<div class="container-fluid">
			<div class="row">
				<!--插入左侧部分sidebar-->
				<div th:replace="commons/bar::#sidebar(activeUri='manage/admin')"></div>

				<main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">

					<a type="button" class="btn btn-primary" th:href="@{/manage/sbType}">
						添加商品小分类
					</a>
					<a  class="btn btn-secondary" th:href="@{/manage/admin}">返 回</a>


					<div class="table-responsive">
						<table class="table table-striped  table-bordered">
							<thead>
							<tr align="center">
								<th width="35%">大分类</th>
								<th width="35%">小分类</th>
								<th width="30%">操 作</th>
							</tr>
							</thead>
							<tbody>
							<tr th:each="subType :${comList}">
								<td align="center" th:text="${subType.superType}"> </td>
								<td align="center" th:text="${subType.subType}"> </td>
								<td align="center">
									<a  th:href="@{/manage/delSubType/}+${subType.ID}" type="button"
										class="btn btn-sm btn-danger ">删除
									</a>
								</td>
							</tr>

							</tbody>
						</table>
					</div>
				</main>
			</div>
		</div>

		<!-- Bootstrap core JavaScript
    ================================================== -->
		<!-- Placed at the end of the document so the pages load faster -->
		<script type="text/javascript" src="asserts/js/jquery-3.2.1.slim.min.js" th:src="@{/asserts/js/jquery-3.2.1.slim.min.js}" ></script>
		<script type="text/javascript" src="asserts/js/popper.min.js" th:src="@{/asserts/js/popper.min.js}" ></script>
		<script type="text/javascript" src="asserts/js/bootstrap.min.js" th:src="@{/asserts/js/bootstrap.min.js}" ></script>

		<!-- Icons -->
		<script type="text/javascript" src="asserts/js/feather.min.js" th:src="@{/asserts/js/feather.min.js}" ></script>
		<script>
			feather.replace()
		</script>


	</body>

</html>